/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.view.wizard.analysis;

import java.util.Vector;
import systole.domain.signals.RawSignal;
import systole.view.wizard.PageController;
import systole.view.wizard.WizardImplement;
import systole.view.wizard.WizardSequenceController;

/**
 *
 * @author jmj
 */
public class WizardAnalysisImplement extends WizardImplement {

    private RawSignal selectedRawSignal = null;
    private String fileName = null;

    public WizardAnalysisImplement(java.awt.Frame parent) {
        super(parent);
    }

    /**
     *
     * @param parent
     * @param rawSignal
     * @param fileName
     */
    public WizardAnalysisImplement(java.awt.Frame parent, RawSignal rawSignal, String fileName) {
        super(parent);
        this.selectedRawSignal = rawSignal;
        this.fileName = fileName;
    }

    @Override
    protected void initWizard() {
        this.result = new WizardAnalysisResult();
        this.view.setTitle("Nuevo Análisis");
        Vector<PageController> pages = new Vector<PageController>();
        pages.add(new FirstPageController(this.selectedRawSignal, this.fileName));
        pages.add(new SecondPageController());
        pages.add(new ThirdPageController());
        this.sequenceController = new WizardSequenceController(pages, this.view);
        this.stepsController = new JPnlWizardAnalysisSteps();
        this.view.getjPnlSteps().add((JPnlWizardAnalysisSteps) this.stepsController);
    }
}
